package com.jrx.anytxn.accounting.mapper.ext;

import com.jrx.anytxn.accounting.entity.TlGlInterfaceInfoExcpReport;
import com.jrx.anytxn.accounting.mapper.base.TlGlInterfaceInfoExcpReportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 总账流水例外表
 *
 * @ClassName ExtTlGlInterfaceInfoExcpReportMapper
 * @Author yf
 * @Date 2019/9/23 0023
 * @Version V1.0
 **/
public interface ExtTlGlInterfaceInfoExcpReportMapper extends TlGlInterfaceInfoExcpReportMapper {

    /**
     * 根据租户ID查询所有
     *
     * @param tenantId 租户ID
     * @return java.util.List<com.jrx.anytxn.accounting.entity.TlGlInterfaceInfoExcpReport>
     * @author fan.yang
     * date: 2019/10/16 0016 下午 16:25
     */
    List<TlGlInterfaceInfoExcpReport> selectAllByPageAndTenId(@Param("tenantId") String tenantId,@Param("customerId") String customerId,@Param("loanId") String loanId);

    /**
     * 根据主键和租户ID查询信息
     *
     * @param id       主键
     * @param tenantId 租户ID
     * @return com.jrx.anytxn.accounting.entity.TlGlInterfaceInfoExcpReport
     * @author fan.yang
     * date: 2019/10/16 0016 下午 16:31
     */
    TlGlInterfaceInfoExcpReport selectByIdAndTenIdAndCusId(@Param("id") Long id, @Param("tenantId") String tenantId, @Param("customerId") String customerId);

    /**
     * 批量插入
     * @param tlGlInterfaceInfoExcpReportList
     * @return
     */
    int batchInsert(List<TlGlInterfaceInfoExcpReport> tlGlInterfaceInfoExcpReportList);

    /**
     * 根据日期删除
     * @param businessDate
     */
    int deleteByDate(@Param("businessDate") Date businessDate);
}
